import 'package:flutter/material.dart';
import 'package:flutter_app_unionad/model/work_take_model.dart';
import 'package:flutter_app_unionad/ui/basice/base_navigation_height_widget.dart';
import 'package:flutter_app_unionad/ui/basice/base_navigation_widget.dart';
import 'package:flutter_app_unionad/ui/workbench/widget/work_activate_widget.dart';

class WorkActivatePage extends StatefulWidget {
  static const String routeName = '/workActivatePage';
  final WorkTakeModel? data;

  const WorkActivatePage({Key? key, this.data}) : super(key: key);

  @override
  _WorkActivatePageState createState() => _WorkActivatePageState();
}

class _WorkActivatePageState extends State<WorkActivatePage> {
  @override
  Widget build(BuildContext context) {
    return BaseNavigationWidget(
      title: '激活',
      needScrollView: false,
      child: WorkActivateWidget(
        id: widget.data!.id!,
        phone: widget.data!.userTel,
        name: widget.data!.userName,
        address: widget.data,
      ),
    );
  }
}
